package model;

import java.util.ArrayList;
import java.util.Date;

import controller.Controller;

public class UserList extends ArrayList<User> {
	private static final long serialVersionUID = 1L;
	
	private Controller controller = null;

	public UserList(Controller controller) {
		super();
		loadUserList();
		this.controller = controller;
	}

	private void loadUserList() {
		// TODO SQL
		for(int i = 0; i < 5; i++){
			int gender = 0;
			if(i % 2 == 0){
				gender = 1;}
			User user = new User("User "+ i, "", new Date(), gender, Level.Fortgeschrittener);
			this.add(user);
		}
	}

	@Override
	public boolean add(User e) {
		// TODO SQL
		return super.add(e);
	}

	@Override
	public boolean remove(Object o) {
		// TODO SQL
		return super.remove(o);
	}

	@Override
	public User remove(int index) {
		// TODO SQL
		return super.remove(index);
	}
}
